import './assets/main.scss'

import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from "./router";
import {createPinia} from "pinia/dist/pinia";
import {createPersistedState} from "pinia-persistedstate-plugin";
import locale from 'element-plus/dist/locale/zh-cn.js'


const app = createApp(App)
app.use(ElementPlus, {locale})
app.use(router)
// 创建pinia
const pinia = createPinia();
// 创建pinia的永久性插件
const persist = createPersistedState();
// 进行参数配置
pinia.use(persist)
app.use(pinia)
app.mount('#app')
